<template>
  <div class="register">
     <my-input>
        <img :src="`https://api.it120.cc/small4/verification/pic/get?key=${key}`" alt="" @click="getCode">
     </my-input>
  </div>
</template>
<script>
import MyInput from '../../components/myInput';
import { ref } from 'vue';
export default {
  components:{MyInput},
  setup(props) {
    const key = ref('1653636273927');
    const getCode = () => { // 改变图形验证码的
       key.value = new Date().getTime();
    }
    return {
      key,
      getCode
    }
  }
}
</script>
<style lang="scss" scoped>
.register{
  height: 100%;
}
</style>


